package com.le.tester.book.effectivejava3rdchinese.secondReading.l87;

import java.io.Serializable;

/**
 * createTime：2024-11-25 9:57
 * description：单单只有字段的类是适合序列化的
 */
public class Name implements Serializable {
    private final String lastName;

    private final String firstName;

    private final String middleName;

    public Name(String lastName, String firstName, String middleName) {
        this.lastName = lastName;
        this.firstName = firstName;
        this.middleName = middleName;
    }
}
